<!DOCTYPE html>
<html>

<head>

  <meta charset="UTF-8">

  <title>自动播放测试</title>

  <link rel="stylesheet" href="css/normalize.css">

    <link rel="stylesheet" href="css/style.css" media="screen" type="text/css" />
	<script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.js"></script>

</head>

<body>
<div style="text-align:center;clear:both;position:absolute;top:0;left:260px">
	
</div>
<audio id="audio" loop="loop">
	<source src="yici.mp3" type="audio/mp3" />
</audio>  
<div style="backgorund:green;" id="play">自动播放holder</div>






  
  <script>
  	

  	window.onload = function(){
		var locAudio = document.getElementById("audio");
		var play = $('#play');
		play.on('click',function(){
            locAudio.play();
        })
  		
		setTimeout(function(){			
            play.click();
		},100);
  	};
  </script>

</body>

</html>